<header class="am-topbar am-topbar-inverse">
    <h1 class="am-topbar-brand">
        <a href="http://<?php echo URL_BASE ?>">Bug Reporter</a>
    </h1>

    <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
            data-am-collapse="{target: '#doc-topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span
            class="am-icon-bars"></span></button>

    <div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse">
        <ul class="am-nav am-nav-pills am-topbar-nav">
            <li class="am-active"><a href="#">首页</a></li>

        </ul>

        <?php if (isset($_SESSION['LOGIN'])) { ?>

            <div class="am-topbar-right">
                <a href="http://<?php echo URL_BASE ?>?user/logout">
                    <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm">注销
                    </button>
                </a>
            </div>

        <?php } else { ?>

            <div class="am-topbar-right">
                <a href="#" data-am-modal="{target: '#doc-modal-1'}">
                    <button class="am-btn am-btn-success am-round am-topbar-btn am-btn-sm">我要反馈!</button>
                </a>
                <button class="am-btn am-btn-secondary am-topbar-btn am-btn-sm"
                        data-am-modal="{target: '#doc-modal-2'}">登录
                </button>
            </div>

        <?php } ?>
    </div>
</header>
